/**
 * api相关
 */
module.exports = {
  /**
   * 日志类接口
   */
  log: {
    enable: true,
    prefix: 'http://127.0.0.1:54813/api/v1',
    url: {
      saveWeChatJscode2SessionLog: '/weChatJscode2SessionLog/add',
      saveUserLoginLog: '/userLoginLog/add',
      saveInterfaceCallLog: '/interfaceCallLog/add',
      savePageVisitLog: '/pageVisitLog/add'
    }
  },
  /**
   * 数据类接口
   */
  data: {
    prefix: 'http://127.0.0.1:54813/api/v1',
    url: {
      login: {
        wechatJscode2session: '/login/wechat/jscode2session'
      },
      banner: {
        findAll: '/banner/findAll'
      },
      goods: {
        findHotGoods: '/goods/findHotGoods',
        page: '/goods/page', findGoodsAndImageUrlListByGoodsId:
          '/goods/findGoodsAndImageUrlListByGoodsId/{goodsId}'
      },
      cart: {
        saveOrIncrementCart: '/cart/saveOrIncrementCart',
        page: '/cart/page',
        updateForId: '/cart/updateForId',
        deleteById: '/cart/deleteById/{id}',
        selectById: '/cart/selectById/{id}'
      },
      category: {
        findTopCategory: '/category/findTopCategory'
      },
      relCategoryImage: {
        findSubCategoryListAndImageListByParentCategoryId: '/relCategoryImage/findSubCategoryListAndImageListByParentCategoryId/{parentCategoryId}',
        findCategoryAndImageUrlById: '/relCategoryImage/findCategoryAndImageUrlById/{categoryId}'
      },
      area: {
        findAllProvince: '/area/findAllProvince',
        findByParentId: '/area/findByParentId/{parentId}'
      },
      relUserAddress: {
        countByUserId: '/relUserAddress/countByUserId/{userId}',
        add: '/relUserAddress/add',
        findByUserId: '/relUserAddress/findByUserId/{userId}'
      },
      order: {
        add: '/order/add'
      },
    }
  }
}